package com.ssm.hj.service.impl;

import com.ssm.hj.service.QuestionBankService;
import com.ssm.hj.view.TypeMap;
import com.ssm.mapper.QuestionBankMapper;
import com.ssm.pojo.QuestionBank;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class QuestionBankServiceImpl implements QuestionBankService {
    @Resource
    private QuestionBankMapper questionBankMapper;
    @Override
    public List<QuestionBank> queryQuestionBankType1Service() throws Exception {
        return this.questionBankMapper.queryQuestionBankType1();
    }

    @Override
    public List<QuestionBank> queryQuestionBankType2Service() throws Exception {
        return this.questionBankMapper.queryQuestionBankType2();
    }

    @Override
    public List<TypeMap> queryQuestionBankTypeAllService() throws Exception {
        return this.questionBankMapper.queryQuestionBankTypeAll();
    }
}
